home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
ada
/
c01oop.zip
/
CPPWKBK
/
CPPV1-5.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-25
|
383b
|
26 lines
#define HEADER "C++ Problem 1.5 by Rick Conn using Borland C++"
#include <stdio.h>
void print (int value) {
printf("The integer value is %10d\n", value);
}
void print (double value) {
printf("The double value is %10.2lf\n", value);
}
void main(void)
{
printf("%s\n", HEADER);
int i;
double d;
i = 4;
d = 12.2;
print(i);
print(d);
}